package com.gtq.uhome.mapper;

import com.gtq.uhome.vo.OrderBasicInformation;
import org.apache.ibatis.annotations.Param;

import java.sql.Timestamp;
import java.util.List;
import java.util.Map;

/**
 * @author ylhy
 * @Describe
 * @create 2020-08-08 18:18
 */
public interface DeliveryPortOrderMapper {


    /**
     * 查询改配送员的带去订单列表
     * @param staffId
     * @return
     */
    List<OrderBasicInformation> pickUpOrderList(@Param("staffId") Integer staffId);


    /**
     * 确认取货
     * @param orderId
     * @return
     */
    Integer confirmReceipt(@Param("orderId") String orderId);

    /**
     * 设置取货时间
     * @param now
     * @return
     */
    Integer setPickTime(@Param("orderId") String orderId, @Param("now") Timestamp now);

    /**
     * 待送货列表
     * @param staffId
     * @return
     */
    List<OrderBasicInformation> waitSendOrderList(@Param("staffId") Integer staffId);

    /**
     * 订单列表确认签收
     * @param orderId
     * @return
     */
    Integer confirmSignFromOrder(@Param("orderId") String orderId, @Param("signStatus") String signStatus);

    /**
     * 派送订单列表确认签收
     * @param map
     * @return
     */
    Integer confirmSignFromDe(Map<String, Object> map);

    /**
     * 成功订单列表
     * @param staffId
     * @return
     */
    List<OrderBasicInformation> okOrderList(@Param("staffId") Integer staffId);


    /**
     * 查询失败订单列表
     * @param staffId
     * @return
     */
    List<OrderBasicInformation> failedOrderList(String staffId);

    /**
     * 订单列表退回订单操作
     * @param orderId
     * @return
     */
    Integer returnOrder(String orderId);

    /**
     * 物流列表退回订单操作
     * @param orderId
     * @return
     */
    Integer returnOrderFromDe(String orderId);

    Integer sendMsg(@Param("userId") Integer userId, @Param("infor") String infor, @Param("now") Timestamp now);
}
